﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for CardType
/// </summary>

    [Serializable]
    public class CardType
    {
        private Guid _id;
		private string _name = String.Empty;
		private string _description = String.Empty;
		private Guid _lastUser = Guid.Empty;
		private DateTime _lastUpdate;
        private Employee _employee;
        public string CardID {get;set;}

       

        public CardType()
        {
        }
        public CardType(Guid id)
        {
            _id = id;
        }

        public IList<CardType> GetAll()
        {
            return new CardTypeDAL().GetAll();
        }
        public IList<CardType> GetAllSearch()
        {
            return new CardTypeDAL().GetAllSearch();
        }

        #region Public Properties
        public Guid Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        public Guid LastUser
        {
            get { return _lastUser; }
            set { _lastUser = value; }
        }

        public DateTime LastUpdate
        {
            get { return _lastUpdate; }
            set { _lastUpdate = value; }
        }
        public Employee Employee
        {
            get { return _employee; }
            set { _employee = value; }
        }
        #endregion

    }
